#ifndef CLICKEDONCELABEL_H
#define CLICKEDONCELABEL_H
#include <QLabel>
#include <QWidget>

class ClickedOnceLabel : public QLabel
{
    Q_OBJECT
public:
    ClickedOnceLabel(QWidget* parent = nullptr);
    virtual void mouseReleaseEvent(QMouseEvent *ev) override;
    void SetState(QString normal,QString hover,QString pressed,QString selected_normal,
                  QString _selected_hover,QString _selected_pressed);
private:
    QString _normal;
    QString _hover;
    QString _pressed;
    QString _selected_normal;
    QString _selected_hover;
    QString _selected_pressed;
signals:
    void clicked(QString);
};

#endif // CLICKEDONCELABEL_H
